<!DOCTYPE html>
<html lang="en">
<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<meta charset="utf-8">
	<title></title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
	<meta name="description" content="">
	<meta name="author" content="">
	<!-- STYLESHEETS --><!--[if lt IE 9]><script src="../../js/flot/excanvas.min.js"></script><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script><![endif]-->
	<link rel="stylesheet" type="text/css" href="../../css/cloud-admin.css" >
	<link rel="stylesheet" type="text/css"  href="../../css/themes/default.css" id="skin-switcher" >
	<link rel="stylesheet" type="text/css"  href="../../css/responsive.css" >
	<link href="../../font-awesome/css/font-awesome.min.css" rel="stylesheet">
	<!-- SELECT2 -->
	<link rel="stylesheet" type="text/css" href="../../js/select2/select2.min.css" />
	<!-- UNIFORM -->
	<link rel="stylesheet" type="text/css" href="../../js/uniform/css/uniform.default.min.css" />
	<!-- datatable -->
    <link rel="stylesheet" href="../../js/datatables/datatable.css">
    <link rel="stylesheet" href="../../js/datepicker/datepicker.css">
	<!-- FONTS
	<link href='http://fonts.useso.com/css?family=Open+Sans:300,400,600,700' rel='stylesheet' type='text/css'>
-->
	<style type="text/css">
		.btn-xs{width:80px;margin-left:0px;margin-right:5px;margin-top:2px;}
	</style>
</head>
<body>
	<header class="navbar clearfix" id="header">
	</header>

	<!-- PAGE -->
	<section id="page">
				<!-- SIDEBAR -->
				<div id="sidebar" class="sidebar">
					<div class="sidebar-menu nav-collapse">

						<!-- SIDEBAR MENU -->
						<ul>


						</ul>
						<!-- /SIDEBAR MENU -->
					</div>

				</div>
				<!-- /SIDEBAR -->
		<div id="main-content">
				<!-- <div class="modal fade" id="updateRate_config" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
					<div class="modal-dialog">
						<div class="modal-content">
							<div class="modal-header">
								<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
								<h4 class="modal-title">修改分成比例</h4>
							</div>
							<div class="modal-body">
								<div class="form-group">
									<label class="control-label col-md-3" style="line-height:34px;"><span class="required">*</span>原分享比例：</label>
									<div class="col-md-6" style="display: flex;line-height:34px">
										<label class="shareRate" style="width: 20px;margin-right:10px"></label>
										<label>调整为：</label>
										<input type="text" class="form-control" name="shareRate" maxlength="2" placeholder="请输入分享比例" style="width:150px" onkeypress="return $.IsNum(event);" onblur="return $.IsNaN(this);"  /> %

									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-3" style="line-height:34px;"><span class="required">*</span>原永久比例：</label>
									<div class="col-md-6" style="display: flex;line-height:34px">
									<label class="foreverRate" style="width: 20px;margin-right:10px"></label>
									<label>调整为：</label>
										<input type="text" class="form-control" name="foreverRate" placeholder="请输入永久比例" maxlength="2" style="width:150px" onkeypress="return $.IsNum(event);" onblur="return $.IsNaN(this);" /> %

									</div>
								</div>
							</div>

							<div class="modal-footer">
								<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
								<button type="button" class="btn btn-success bt-update">保存</button>
							</div>
						</div>
					</div>
				</div> -->
			<div class="container">
				<div class="row">
					<div id="content" class="col-lg-12">
						<!-- PAGE HEADER-->
						<div class="row">
							<div class="col-sm-12">
								<div class="page-header">
									<!-- STYLER -->

									<!-- /STYLER -->
									<!-- BREADCRUMBS -->
									<ul class="breadcrumb">
										<li>
											<i class="fa fa-home"></i>
											<a href="index.html">首页</a>
										</li>
										<li>
											<a href="#">营销管理</a>
										</li>
										<li>优惠劵</li>
									</ul>
									<!-- /BREADCRUMBS -->

								</div>
							</div>
						</div>
						<!-- /PAGE HEADER -->
						<!-- FORMS QUERY-->
						<div class="row">
							<div class="col-md-12">
								<div class="row">
									<div class="col-md-12">
										<div class="box border primary">
											<div class="box-title">
												<h4><i class="fa fa-bars"></i>查询条件</h4>
											</div>
											<div class="box-body big" style="padding:10px;">
												<form class="form-horizontal" role="form" id="form_Promotion">
												  <div class="form-group mrg-bt10">
													<label class="col-sm-1 control-label" style="width: auto">用户名称：</label>
													<div class="col-sm-2">
													  <input type="text" class="form-control" name="q" placeholder="输入关键字">
													</div>

												    <label class="col-sm-1 control-label" style="width: auto">Source值：</label>
												    <div class="col-sm-2">
													  <input type="text" class="form-control" name="sourceName" placeholder="输入关键字">
												    </div>
												  	<label class="col-sm-1 control-label" style="width: auto">邀请码：</label>
													  <div class="col-sm-2">
														  <input type="text" class="form-control" name="inviteCode" placeholder="输入邀请码">
													  </div>
													<label class="col-sm-1 control-label" for="e1" style="width: 102px">状态：</label>
													<div class="col-sm-2">
															<select id="userType_select" name="userType" class="col-md-12 select2-offscreen" tabindex="-1">
															   <option value=-1>选择推广类型</option>
															   <option value="Channel">企业推广</option>
															   <option value="Ordinary">个人推广</option>
															   <option value="Agent">代发货</option>
															    <option value="UserAgent">个人代理</option>
															    <option value="Group">团长</option>
															</select>
													</div>
													<div class="col-sm-1">
									       				<a class="btn btn-primary search">查询</a>
													</div>
												  </div>
												 </form>
											</div>
										</div>
									</div>
								</div>
						    </div>
						</div>
						<!-- /FORMS QUERY -->

					    <div class="row">
								<!-- TABLES -->
								<div class="col-md-12">
									<!-- BOX -->
									<div class="box border primary">
										<div class="box-title">
											<h4><i class="fa fa-table"></i>列表</h4>

										</div>
										<div class="box-body">
											<table id="db_Source_User_list" cellpadding="0" cellspacing="0" border="0" class="datatable table table-striped table-bordered table-hover">

											</table>
										</div>
									</div>
									<!-- /BOX -->
								</div>
							</div>
							<!-- /TABLES -->


						<div class="footer-tools">
							<span class="go-top">
								<i class="fa fa-chevron-up"></i> Top
							</span>
						</div>
					</div><!-- /CONTENT-->
				</div>
			</div>
			<div class="modal fade" id="return-box" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
			aria-hidden="true">
				<div class="modal-dialog">
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
							<h4 class="modal-title">代理支付详情</h4>
						</div>
						<div class="modal-body">
							<div class="form-group levelName"
								 style="line-height:34px;margin-bottom: 0px;overflow: hidden;">
								<label class="control-label col-md-3" style="line-height:34px;">支付金额：</label>
								<div class="col-md-4 totalPrice">
									0
								</div>
							</div>
							<div class="form-group levelName"
								 style="line-height:34px;margin-bottom: 0px;overflow: hidden;">
								<label class="control-label col-md-3" style="line-height:34px;">商家订单号：</label>
								<div class="col-md-4 orderPayCode">

								</div>
							</div>
							<div class="form-group levelName"
								 style="line-height:34px;margin-bottom: 0px;overflow: hidden;">
								<label class="control-label col-md-3" style="line-height:34px;">退款渠道：</label>
								<div class="col-md-4 returnPayType">
								</div>
							</div>
							<div class="form-group levelName"
								 style="line-height:34px;margin-bottom: 0px;overflow: hidden;">
								<label class="control-label col-md-3" style="line-height:34px;">
									<span class="required">*</span>
									实退金额：
								</label>
								<div class="col-md-4 realPrice">
									<input class="form-control" placeholder="请输入实退金额"
										   onkeypress="return $.IsDecimal(event);" onblur="return $.IsMoney(this);"
										   onfocus="this.select()" style="height:30px;width:200px;" type="text"
										   name="realPrice">
								</div>
							</div>
						</div>
						<div class="modal-footer">
							<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
							<button type="button" class="btn btn-success bt-save-return">撤销代理</button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</section>
	<!--/PAGE -->
	<!-- JAVASCRIPTS -->
	<!-- Placed at the end of the document so the pages load faster -->
	<!-- JQUERY -->
	<script src="../../js/jquery/jquery-2.0.3.min.js"></script>

	<!-- BOOTSTRAP -->
	<script src="../../bootstrap-dist/js/bootstrap.min.js"></script>
	<!-- BLOCK UI -->
	<script type="text/javascript" src="../../js/jQuery-BlockUI/jquery.blockUI.min.js"></script>

	<!-- AUTOSIZE -->
	<script type="text/javascript" src="../../js/autosize/jquery.autosize.min.js"></script>
	<!-- spinner -->
		<script src="../../js/spinner/spin.js"></script>
	<!-- DATA TABLES -->
		<script type="text/javascript" src="../../js/datatables/bootstrap-select.js"></script>
		<script type="text/javascript" src="../../js/datatables/datatable.js"></script>
		<script type="text/javascript" src="../../js/datatables/datatable-bootstrap.js"></script>
		<script type="text/javascript" src="../../js/datatables/datatable-tabletools.js"></script>
		<script type="text/javascript" src="../../js/datatables/fnAddTr.js"></script>

	<!-- INPUT MASK -->
	<script type="text/javascript" src="../../js/bootstrap-inputmask/bootstrap-inputmask.min.js"></script>
   	<!--bootbox-->
		<script type="text/javascript" src="../../js/bootbox/bootbox.min.js"></script>
	<!-- SELECT2 -->
	<script type="text/javascript" src="../../js/select2/select2.min.js"></script>
	<!-- UNIFORM -->
	<script type="text/javascript" src="../../js/uniform/jquery.uniform.min.js"></script>
		<script type="text/javascript" src="../../js/datepicker/datepicker.js"></script>
	<!-- COOKIE -->
	<script type="text/javascript" src="../../js/jQuery-Cookie/jquery.cookie.min.js"></script>
	<!-- CUSTOM SCRIPT -->
	<script src="../../js/script.js"></script>
	<script src="../../js/common.js"></script>
		<script>
		var SourceUser=function(){
	         var  $mainDataTable=null;
	         var sourceName=$.getUrlParam("sourceCode");
	         $("input[name=sourceName]").val(sourceName);

	         var searchSourceUser=function(){
	        	 var userType=$("#userType_select").val();
	          var url=App.getContextPath()+"admin/sourceUser/searchSourceUser.do?userName="+$("input[name=q]").val()
				  +"&sourceCode="+$("[name=sourceName]").val()+"&inviteCode="+$("[name=inviteCode]").val();
	            if(userType!=null&&userType!=-1)
	            	url+="&userType="+userType;

			       if($mainDataTable){
			           $mainDataTable.api().ajax.url(url).load();
		   		       return;
			        }
		           var dtSetting = $.dataTableSetting({
							"ajaxSource" :url,
							"serverSide" : true,
							"bFilter" : false,// 去掉搜索框
							"bLengthChange" : true,// 每页显示数量
							"sScrollX":"100%",
							"sScrollXInner": "100%",
							"iDisplayLength": 25,

							"bSort" : true,
							"aoColumns" : [ {
								"mDataProp" : "id",
								"sTitle" : "用户ID",
								"class":"userId",
								"width" : "8%",
                                "bSortable" : false
							}, {
								"mDataProp" : "userName",
								"sTitle" : "用户名称",
								"class":"userName",
								"width" : "10%",
                                "bSortable" : false
							}, {
                                "sTitle" : "Source值",
                                "mDataProp" : "sourceCode",
                                "width" : "10%",
                                "bSortable" : false
                            }, {
                                "sTitle" : "邀请码",
                                "mDataProp" : "shareCode",
                                "width" : "10%",
                                "bSortable" : false
                            }, {
								"sTitle" : "推广类型",
								"mDataProp" : "ygUser.sourceCode",
								"width" : "10%",
                                "bSortable" : false,
								"render":function(data, type, row){
									if(row.userType==="Channel")
										return "企业推广";
									if(row.userType==="Agent")
										return "代发货";
									if(row.userType==="UserAgent")
										return "个人代理";
									if(row.userType==="Group")
										return "团长";
									return "个人推广";
								}

							}, {

								"sTitle" : "耕耘成果",
								"width" : "7%",
								"bSortable" : true,
								"render":function(data, type, row){
								    var userBalances = row.userBalanceList;
								    if (userBalances && userBalances.length > 0) {
								        var str = "";
								        $(userBalances).each(function(idx, item) {
								            if (item.platformNo === 'M000') {
                                                // str += "<p><span>"+item.platformName+"：</span>";
                                                if (item.cultivationPrice && item.cultivationPrice > 0) {
                                                    str += "<a  href='source_user_cultivationMonth.html?userId="+row.id +"'>"+format_thousands(item.cultivationPrice)+"</a>";
                                                } else {
                                                    str += "<span>0.00</span>";
                                                }
                                                str += "</p>";
											}
										});
								        if (str === "") {
								            str = "--";
										}
										return str;
									}
									return "--";
								 }
							},{

								"sTitle" : "预计成长基金",
								"width" : "9%",
                                "bSortable" : false,
								"render":function(data, type, row){
                                    var userBalances = row.userBalanceList;
                                    if (userBalances && userBalances.length > 0) {
                                        var str = "";
                                        $(userBalances).each(function(idx, item) {
                                            // str += "<p><span>"+item.platformName+"：</span>";
                                            if (item.preincomePrice && item.preincomePrice > 0) {
                                                str += "<a  href='trade_detail.html?userId="+row.id +"&preincomePrice="+item.preincomePrice+"&priceType=PreIncome&platformNo="+item.platformNo+"'>"+format_thousands(item.preincomePrice)+"</a>";
											} else {
                                                str += "<span>0.00</span>";
											}
                                            str += "</p>";
                                        });
                                        return str;
                                    }
                                    return "--";
								}
							}
							, {

								"sTitle" : "成长基金",
								"width" : "8%",
								"bSortable" : false,
								"render":function(data, type, row){
                                    var userBalances = row.userBalanceList;
                                    if (userBalances && userBalances.length > 0) {
                                        var str = "";
                                        $(userBalances).each(function(idx, item) {
                                            // str += "<p><span>"+item.platformName+"：</span>";
											str += "<p><a  href='trade_detail.html?userId="+row.id +"&balancePrice="+item.balancePrice+"&priceType=Balance&platformNo="+item.platformNo+"'>"+format_thousands(item.balancePrice)+"</a>";
                                            str += "</p>";
                                        });
                                        return str;
                                    }
                                    return "--";
								}

							}, /* {

								"sTitle" : "分享返利",
								"width" : "8%",
								"class":"shareRate",
								"render":function(data, type, row){
								   return (row.ygUser.shareRate*100).toFixed(0)+"%";
								}

							}, {

								"sTitle" : "永久返利",
								"width" : "8%",
								"class":"foreverRate",
								"render":function(data, type, row){
									 return (row.ygUser.foreverRate*100).toFixed(0)+"%";
								}
							}, */ {

								"sTitle" : "注册时间",
								"width" : "10%",
								"bSortable" : false,
								"render":function(data, type, row){
								  return $.getLocalTime(row.createTime);
								}
							}, {
								"sTitle" : "操作",
								"bSortable" : false,
								"render":function(data, type, row){
									var tempArr = [];
									if(row.userType !== "Channel"){
										if(row.userType !== "Group"){
											tempArr.push("<a class='btn btn-success bt-group btn-xs btn-width' href='javascript:;' openid='"+row.openId+"'><i class='fa fa-pencil-square-o'></i>指定团长</a>");
											if(row.userType==="UserAgent"){
										    	if (row.checkStatus === 'Pass') {
                                                    tempArr.push("<a class='btn btn-danger btn-xs btn-width bt-cancel' usertype='"+row.userType+"' openid='"+row.openId+"' href='javascript:;'><i class='fa fa-pencil-square-o'></i>撤销代理</a>");
												} else if (row.checkStatus === 'WaitingCancel') {
                                                    tempArr.push("<a class='btn btn-danger btn-xs btn-width bt-delete' userid='"+row.userId+"' href='javascript:;' style='width:100px;'><i class='fa fa-pencil-square-o'></i>停止撤销代理</a>");
												}
											} else {
                                                tempArr.push("<a class='btn btn-warning btn-xs btn-width btn-useragent' href='javascript:;' openid='"+row.openId+"'><i class='fa fa-pencil-square-o'></i>指定代理</a>");
                                            }
                                            tempArr.push("<a class='btn btn-primary  btn-xs btn-width bt-remark' href='promotion_user.html?fromCode="+row.sourceCode+"'><i class='fa fa-pencil-square-o'></i>查看粉丝</a>");
										} else {
                                            if (row.checkStatus === 'Pass') {
                                                tempArr.push("<a class='btn btn-danger btn-xs btn-width bt-cancel' usertype='"+row.userType+"' openid='"+row.openId+"' href='javascript:;'><i class='fa fa-pencil-square-o'></i>撤销团长</a>");
                                            } else if (row.checkStatus === 'WaitingCancel') {
                                                tempArr.push("<a class='btn btn-danger btn-xs btn-width bt-delete' userid='"+row.userId+"' href='javascript:;' style='width:100px;'><i class='fa fa-pencil-square-o'></i>停止撤销团长</a>");
											}
											tempArr.push("<a class='btn btn-primary  btn-xs btn-width bt-remark' href='promotion_user.html?groupTag="+row.groupTag+"'><i class='fa fa-pencil-square-o'></i>查看新用户</a>");
										}
									}
									return tempArr.join("");
								}

							}]
						});

				      $mainDataTable = $("#db_Source_User_list").dataTable(dtSetting);
	         };


	         return {
	         init:function(){
                 var userId = userName = userType = openId = '';
                 var payInfo = {};
                 var isGo = false
	          $("#userType_select").select2();
			  $("#userType_select").select2('val','UserAgent');
	          $(".search").click(searchSourceUser);
	            searchSourceUser();
	            /* $("#db_Source_User_list").on("click",".bt-rate",function(){
	            	var tr=$(this).closest("tr");
	            	var userId=$(tr).find(".userId").html()
	            	$("#updateRate_config").find("input").val('');
	            	$("#updateRate_config").find(".shareRate").html($(tr).find(".shareRate").html());
	            	$("#updateRate_config").find(".foreverRate").html($(tr).find(".foreverRate").html());
	            	$("#updateRate_config").modal("show");
	            	$(".bt-update").unbind("click").click(function(){
	            		var shareRate=$("[name=shareRate]").val();
	            		var foreverRate=$("[name=foreverRate]").val();

	            		if(shareRate==""){
	            			$.alert("请输入分享比例");
	            			return false;
	            		}
	            		if(foreverRate==""){
	            			$.alert("请输入永久比例");
	            			return false;
	            		}
	            		$.confirm("确认更新推广比例?",function(){
	    	      	 		$.ajax({
	    						type: "get",
	    						url: App.getContextPath() + "admin/sourceUser/updateRate.do",
	    						data:{userId:userId,shareRate:shareRate,foreverRate:foreverRate},
	    						async: true,
	    						success: function(result) {
	    							if(result.type == 'error'){
	    								$.alert(result.extra);
	    							}else{
	    								$.alert(result.extra);
	    								$("#updateRate_config").modal("hide");
	    							}
	    							searchSourceUser();

	    							}

	    					});

	    	      	 	});

	            	})
	            }); */
                 $("#db_Source_User_list").on("click",".bt-cancel",function(){
                     var tr=$(this).closest("tr");
                     userId=$(tr).find(".userId").html();
                     userName=$(tr).find(".userName").html();
                     userType = $(this).attr('usertype');
                     openId = $(this).attr('openid') == 'null' ? null : $(this).attr('openid');
                     if (userType === 'Group') {
                         $('.bt-save-return').click();
                     } else {
                         $.ajax({
                             type: "get",
                             url: App.getContextPath() + "admin/agent/agentPayInfo.do",
                             data: { userId: userId, userName: userName, openId: openId },
                             async: true,
                             success: function (result) {
                                 if (result.type == 'error') {
                                     $.alert(result.content);
                                 } else {
                                     var totalPrice = realPrice = 0;
                                     $('.returnPayType').closest('.form-group').hide();
                                     $('.orderPayCode').closest('.form-group').hide();
                                     var paymentCode = ''
                                     if (result.extra) {
                                         isGo = true
                                         realPrice = totalPrice = result.extra.paidPrice
                                         paymentCode = result.extra.paymentCode
                                         $('.returnPayType').html(result.extra.payTypeDesc + '支付')
                                         $('.returnPayType').closest('.form-group').show();
                                         $('.orderPayCode').closest('.form-group').show();
                                         payInfo = result.extra
                                     }
                                     $('.totalPrice').html(totalPrice)
                                     $('[name=realPrice]').val(realPrice)
                                     $('.orderPayCode').html(paymentCode)
                                     $('#return-box').modal('show')
                                 }
                             }
                         });
                     }
                 });
                 $('.bt-save-return').click(function () {
                     var operation = '个人代理';
                     var url = App.getContextPath() + "admin/agent/cancelRightNow.do";
                     if (userType == 'Group') {
                         operation = '团长';
                         url = App.getContextPath() + "admin/agent/cancelGroupHead.do";
                     }
                     var refundPrice = 0;
                     if (isGo) {
                         refundPrice = $('[name=realPrice]').val()
                     }
                     $.confirm('是否确认撤销该用户的' + operation + '身份？', function () {
                         $.ajax({
                             type: "get",
                             url: url,
                             data: { userId: userId, userName: userName, openId: openId, refundPrice: refundPrice },
                             async: true,
                             success: function (result) {
                                 if (result.type == 'error') {
                                     $.alert(result.content);
                                 }
                                 searchSourceUser();
                                 $('#return-box').modal('hide')
                             }
                         });
                     });
                 })
	            $("#db_Source_User_list").on("click",".bt-group",function(){
	            	var tr=$(this).closest("tr");
	            	var userId=$(tr).find(".userId").html();
	            	var userName=$(tr).find(".userName").html();
	            	var openId = $(this).attr('openid') == 'null' ? null : $(this).attr('openid');
	            	$.confirm('是否确认指定该用户为团长？', function(){
		            	$.ajax({
		            		type: "get",
		            		url: App.getContextPath() + "admin/agent/createGroupHead.do",
		            		data:{userId:userId,userName:userName,openId:openId},
		            		async: true,
		            		success: function(result) {
								if(result.type == 'error'){
									$.alert(result.extra);
								}
								searchSourceUser();
		            		}
		            	});
	            	});
	            	
	            });
	            $("#db_Source_User_list").on("click",".btn-useragent",function(){
	            	var tr=$(this).closest("tr");
	            	var userId=$(tr).find(".userId").html();
	            	$.confirm('是否确认指定该用户为代理？', function(){
		            	$.ajax({
		            		type: "get",
		            		url: App.getContextPath() + "admin/agent/rechargeUserAgent.do",
		            		data:{userId:userId},
		            		async: true,
		            		success: function(result) {
								if(result.type === 'error'){
									$.alert(result.content);
								}
								searchSourceUser();
		            		}
		            	});
	            	});

	            });
	            $("#db_Source_User_list").on("click",".bt-delete",function(){
                    var tr=$(this).closest("tr");
	            	var userId = $(tr).find(".userId").html();
	            	$.confirm('是否停止对该用户的撤销资格进程？', function(){
		            	$.ajax({
		            		type: "get",
		            		url: App.getContextPath() + "admin/agent/deleteCancelAgent.do",
		            		data:{userId:userId},
		            		async: true,
		            		success: function(result) {
								if(result.type == 'error'){
									$.alert(result.extra);
								}
								searchSourceUser();
		            		}
		            	});
	            	});
	            });
	          }
		    }
	      }();

	      $(function(){
	      	$("#header").load("../head.html");
	        App.init(); //Initialise plugins and elements
	      	SourceUser.init();

	      });
		</script>
		<!-- /JAVASCRIPTS -->
</body>
</html>